home *** CD-ROM | disk | FTP | other *** search
/ PC World 2007 January / PCWorld_2007-01_cd.bin / v cisle / autoit / autoit-v3.2.0.1-setup.exe / Examples / Helpfile / _GUICtrlComboSetHorizontalExtent.au3 < prev    next >
Text File  |  2006-06-17  |  1KB  |  28 lines

  1. #include <GuiConstants.au3>
  2. #include <GuiCombo.au3>
  3.  
  4. Opt('MustDeclareVars',1)
  5.  
  6. Dim $Combo,$Btn_Exit,$Status,$msg
  7.  
  8. GuiCreate("ComboBox Set Horizontal Extent", 392, 254)
  9.  
  10. $Combo = GuiCtrlCreateCombo("", 70, 10, 100, 150,BitOR($CBS_SIMPLE,$CBS_DISABLENOSCROLL,$WS_HSCROLL))
  11. GUICtrlSetData($Combo,"AutoIt v3 is freeware BASIC-like scripting language designed for automating the Windows GUI.|" & _ 
  12.                              "It uses a combination of simulated keystrokes mouse movement and window/control manipulation|" & _ 
  13.                              "in order to automate tasks in a way not possible or reliable with other languages|" & _ 
  14.                              "(e.g. VBScript and SendKeys).")
  15. $Btn_Exit = GuiCtrlCreateButton("Exit", 150, 180, 90, 30)
  16. $Status = GUICtrlCreateLabel("",0,234,392,20,BitOR($SS_SUNKEN,$SS_CENTER))
  17. _GUICtrlComboSetHorizontalExtent($Combo, 500)
  18. GUICtrlSetData($Status,"Horizontal Extent: " & _GUICtrlComboGetHorizontalExtent($Combo))
  19. GuiSetState()
  20. While 1
  21.     $msg = GuiGetMsg()
  22.     Select
  23.         Case $msg = $GUI_EVENT_CLOSE Or $msg = $Btn_Exit
  24.             ExitLoop
  25.     EndSelect
  26. WEnd
  27. Exit
  28.